package com.zutassociation.system.service.impl;

import com.zutassociation.system.domain.Pick;
import com.zutassociation.system.mapper.PickMapper;
import com.zutassociation.system.service.PickService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 社联风采 服务层实现
 *
 * @author 黄玉东
 * @version 1.0
 * @date 2021/3/18 17:15
 */
@Service
public class PickServiceImpl implements PickService {

    @Autowired
    private PickMapper pickMapper;

    /**
     * 查询社联风采信息
     *
     * @param pickId 社联风采ID
     * @return 社联风采信息
     */
    @Override
    public Pick selectPickById(Long pickId) {
        return pickMapper.selectPickById(pickId);
    }

    @Override
    public Pick selectUpPick(Long pickId) {
        return pickMapper.selectUpPick(pickId);
    }

    @Override
    public Pick selectNextPick(Long pickId) {
        return pickMapper.selectNextPick(pickId);
    }

    @Override
    public List<Pick> selectPickListClick(Pick pick) {
        return pickMapper.selectPickListClick(pick);
    }

    /**
     * 查询社联风采列表
     *
     * @param pick 社联风采信息
     * @return 社联风采集合
     */
    @Override
    public List<Pick> selectPickList(Pick pick) {
        return pickMapper.selectPickList(pick);
    }

    /**
     * 新增社联风采
     *
     * @param pick 社联风采信息
     * @return 结果
     */
    @Override
    public int insertPick(Pick pick) {
        return pickMapper.insertPick(pick);
    }

    /**
     * 修改社联风采
     *
     * @param pick 社联风采信息
     * @return 结果
     */
    @Override
    public int updatePick(Pick pick) {
        return pickMapper.updatePick(pick);
    }

    @Override
    public int updatePickClick(Pick pick) {
        return pickMapper.updatePickClick(pick);
    }

    /**
     * 删除社联风采信息
     *
     * @param pickId 社联风采ID
     * @return 结果
     */
    @Override
    public int deletePickById(Long pickId) {
        return pickMapper.deletePickById(pickId);
    }

    /**
     * 批量删除社联风采信息
     *
     * @param pickIds 需要删除的社联风采ID
     * @return 结果
     */
    @Override
    public int deletePickByIds(Long[] pickIds) {
        return pickMapper.deletePickByIds(pickIds);
    }
}
